package fhp.hlhj.giantfold.module

import com.lzy.okgo.model.HttpParams
import fhp.hlhj.giantfold.javaBean.EFBean
import fhp.hlhj.giantfold.network.UrlApis

/**
 * Created by Administrator on 2018\2\5 0005.
 */
class AnnualModule {
    interface onAnnualListener{
        fun showLoading()
        fun onResp(efBean: EFBean)
    }


    fun getEf(params: HttpParams,listener: onAnnualListener){
        UrlApis.getEF(params)
                .doOnSubscribe {
                    listener.showLoading()
                }
                .subscribe {
                    data->
                    listener.onResp(data)
                }
    }

}